/*
 * AgentsManager.java
 * business
 *
 * Created by SunDing on 2017/1/19.
 *
 * Copyright (c) 2017年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.manager;

/** 代理商的manager */
public class AgentsManager {
    private static AgentsManager manager = new AgentsManager();
    private onButtonClickListener mListener;

    private AgentsManager() {
    }

    public static AgentsManager getInstance() {
        return manager;
    }

    public void setOnButtonClickListener(onButtonClickListener listener) {
        mListener = listener;
    }

    public void onButtonClick(int type, String orderId) {
        if (null != mListener) {
            mListener.onClick(type, orderId);
        }
    }

    public interface TYPE {
        /** 收款 */
        int RECEIVE_MONEY = 0;
        /** 发货 */
        int DISPATCH_GOODS = 1;
    }

    public interface onButtonClickListener {
        void onClick(int type, String orderId);
    }
}
